import Vue from 'vue'
import Router from 'vue-router'
//引入组件
import login from "../components/login"
import Home from '../components/Home.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
     //如果访问的是/，进行重定向进入login页面中
     path: '/',
     redirect: '/login'
    },
    {
      //路由跳转路径
      path: '/login',
      //路由跳转组件
      component: login
    },
    {
      //路由跳转路径
      path: '/home',
      //路由跳转组件
      component: Home
    }
      //路由跳转组件
      // component: main,
      // children:[{
      //   path:'/examinee',
      //   name:'examinee',
      //   component:examinee
      // },
  ]
})
